package com.swu.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 病案首页校验规则表
 * </p>
 *
 * @author 勾新杰
 * @since 2025-06-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("validation_rule")
@Schema(name="ValidationRule对象", description="病案首页校验规则表")
public class ValidationRule implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "规则ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "规则名称")
    private String ruleName;

    @Schema(description = "规则描述")
    private String ruleDescription;

    @Schema(description = "规则类型：1-条件必填检查 2-逻辑一致性检查")
    private Integer ruleType;

    @Schema(description = "规则内容（Drools规则语言）")
    private String ruleContent;

    @Schema(description = "规则状态：0-禁用 1-启用")
    private Integer status;

    @Schema(description = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;

    @Schema(description = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updateTime;

    @Schema(description = "创建人，有默认值")
    private String creator;

    @Schema(description = "更新人，有默认值")
    private String updater;


}
